package com.demo2do.boyle.common.entity.aduser.transaction;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan leo
 *
 */
@Alias("transactionType")
public enum TransactionType {
	
	DEPOSIT("充值", "deposit"),
	
	CONSUME("消费", "consume"),
	
	REFUND("质检退款", "refund");
	
	private String description;
	
	private String alias;
	
	private TransactionType(String description, String alias) {
		this.description = description;
		this.alias = alias;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the alias
	 */
	public String getAlias() {
		return alias;
	}

	/**
	 * @param alias the alias to set
	 */
	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Enum#toString()
	 */
	@Override
    public String toString() {
        return description;
    }
}

